 package com.shwread.httpsdk.bean; 
/** 
 * @Title: FormFile.java
 * @Package com.surfingread.httpsdk.bean 
 * @Description: TODO(添加描述) 
 * @author 刘章 
 * @date 2014年2月19日 下午7:44:23 
 */
public class FormFile
{
	/* 上传文件的数据 */
	private byte[] data;
	
	/* 文件名称 */
	private String fileName;
	
	/* 表单字段名称 */
	private String formFieldName;                            //可以任意填写，如file1
	                                                         
	/* 内容类型 */
	private String contentType = "application/octet-stream";
	
	public FormFile(String formFieldName, String fileName, byte[] data) {
		this.formFieldName = formFieldName;
		this.data = data;
		this.fileName = fileName;
	}
	
	public FormFile(String formFieldName, String fileName, byte[] data, String contentType) {
		this.formFieldName = formFieldName;
		this.data = data;
		this.fileName = fileName;
		this.contentType = contentType;
	}
	
	public byte[] getData() {
		return data;
	}
	
	public void setData(byte[] data) {
		this.data = data;
	}
	
	public String getFileName() {
		return fileName;
	}
	
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	
	public String getFormFieldName() {
		return formFieldName;
	}
	
	public void setFormFieldName(String formFieldName) {
		this.formFieldName = formFieldName;
	}
	
	public String getContentType() {
		return contentType;
	}
	
	public void setContentType(String contentType) {
		this.contentType = contentType;
	}
}

